//
//  riter1.cpp
//  Demo
//
//  Created by zhang on 14-5-29.
//  Copyright (c) 2014年 zhang. All rights reserved.
//

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main()
{
    vector<int> col1;
    
    // insert elements from 1 to 9
    for (int i=1; i<=9; ++i) {
        col1.push_back(i);
    }
    
    // print all element in reverse order
    copy(col1.rbegin(),col1.rend(),ostream_iterator<int>(cout," "));
    cout<<endl;
    return 0;
}